<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>排行榜</title>
    <style>
        *{padding:0;margin:0;font-family: '微软雅黑';}
        html,body{padding:0;margin:0;background: #bb171e ;}
        .bg{
            background:url('/templates/default/images/LED.png') top center no-repeat;
            margin:0 auto;
            width:1600px;
            height: 900px;
            overflow: hidden;
        }
        .bg h1{text-align: center;color:#ed3d34;font-size: 32px;font-weight: bold;}
        .bg table{
            width:1150px;
            margin:24px auto 0;
            border-top:1px solid #dcc0b5;

        }
        .bg table tr td{
            height: 55px;
            vertical-align: middle;
            font-size: 14px;
            font-weight: bold;


        }
        .dark td{
            background: #ffe3c6;
        }

        .red{margin-left: 25px;color:#ed3d34;font-size: 18px;}
        .gray{color:#714230;}
        .mg1{
            margin-top: 235px;
        }
        .mg2{
            margin-top: 30px;
        }
        .btn{
            background: url("/templates/default/images/showbtn.png") top center no-repeat;
            display: inline-block;
            width: 83px;
            height: 27px;
            text-align: center;
            line-height: 27px;
            color: #fff;
            padding-right: 20px;
        }
    </style>
</head>
<body>
<div class="bg">
    <h1 class="mg1">节目排名</h1>
    <table  border="0" cellspacing="0" cellpadding="0">
        {{foreach from=$article_list item=i key=k}}
        {{if $k%3 == 0}}
            <tr {{if $k%6 == 0 }}class=dark{{/if}}>
        {{/if}}
                <td>
                    <span class="red">第 {{$k+1}} 名：</span>
                    <span class="gray">{{$i.article_title}}</span>
                </td>
                <td>
                    <span class="btn">{{$i.vote_num}}票</span>
                </td>
        {{if $k%3 == 2}}
            </tr>
        {{/if}}
        {{/foreach}}
    </table>

    <h1 class="mg2">演员排名</h1>
    <table border="0" cellspacing="0" cellpadding="0">
        {{foreach from=$article_type2_list item=i key=k}}
        {{if $k%3 == 0 }}
            <tr {{if $k%6 == 0 }}class=dark{{/if}}>
        {{/if}}
            <td>
                <span class="red">第 {{$k+1}} 名：</span>
                <span class="gray">{{$i.article_title}}</span>
            </td>
            <td>
                <span class="btn">{{$i.vote_num}}票</span>
            </td>
        {{if $k%3 == 2 }}
        </tr>
        {{/if}}
        {{/foreach}}
    </table>

</div>
</body>
</html>